<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Userscript</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Userscript"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Userscript rootpage-Userscript skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Userscript</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}
/* end https://en.wikipedia.org/ */
</style>
<p>A <b>userscript</b> (or <b>user script</b>) is a program, usually written in <a href="JavaScript" title="JavaScript">JavaScript</a>, for modifying <a href="Web_page" title="Web page">web pages</a><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> to <a href="Augmented_browsing" title="Augmented browsing">augment browsing</a>. Uses include adding shortcut buttons and keyboard shortcuts, controlling playback speeds, adding features to sites, and enhancing the <a href="Browsing_history" class="mw-redirect" title="Browsing history">browsing history</a>.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>On desktop browsers such as Firefox, userscripts are enabled by use of a <a href="Userscript_manager" title="Userscript manager">userscript manager</a> <a href="Browser_extension" title="Browser extension">browser extension</a> such as <a href="Tampermonkey" title="Tampermonkey">Tampermonkey</a> or <a href="Greasemonkey" title="Greasemonkey">Greasemonkey</a>. The Presto-based Opera-supported userscripts (referred to as User JavaScript<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>) are placed in a designated directory. Userscripts are often referred to as <a href="Greasemonkey" title="Greasemonkey">Greasemonkey</a> scripts, named after the original userscript manager for Firefox.
</p><p>On Wikipedia, a user scripts feature is enabled for registered users that allows them to install userscripts to augment editing and viewing of the encyclopedia's pages.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Userscript_managers">Userscript managers</h2></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Userscript_manager" title="Userscript manager">Userscript manager</a></div>
<p>A <a href="Userscript_manager" title="Userscript manager">userscript manager</a> is a type of browser extension and augmented browsing technology that provides a user interface to manage scripts. The main purpose of a userscript manager is to execute scripts on webpages as they are loaded. The most common operations performed by a userscript manager include downloading, creating, installing, organizing, deleting and editing scripts, as well as modifying script permissions (e.g. website exceptions).
</p>
<div class="mw-heading mw-heading2"><h2 id="Userscript_repositories">Userscript repositories</h2></div>
<p>One aspect of userscripts is that they can be shared. They can be uploaded to a userscript repository where they become available to other users for downloading.
</p><p>Historically (circa 2005–2011) userscripts.org, created by American programmer Jesse Andrews, was the largest such repository for userscripts. Over time, the site was transitioned between various maintainers before it went offline completely in May 2014.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> All that remains is a mirror, which is useful for archival purposes.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p><p>A handful of the most active contributors in the userscripts.org community<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup> created <i>OpenUserJS</i>,<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> which is actively in use today. Also available is <i>Greasy Fork</i>, a repository largely developed and maintained by Canadian programmer Jason Barnabe.<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
</p><p>Users of the <a href="Greasemonkey" title="Greasemonkey">Greasemonkey</a><sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup> and <a href="Tampermonkey" title="Tampermonkey">Tampermonkey</a><sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> extensions may choose to install .user.js scripts from any location.
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="List_of_augmented_browsing_software" title="List of augmented browsing software">List of augmented browsing software</a></li>
<li><a href="Scripting_language" title="Scripting language">Scripting language</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */
.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}
/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.computerhope.com/jargon/u/userscri.htm">"User script"</a>. <i>Computer Hope Dictionary</i>. Computer Hope. 2017-04-26<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-08-19</span></span>. <q>script that is run in a Web browser to make live changes to a Web page. These scripts are oftentimes used to add some functionality to a page or to change its appearance. These are typically written in JavaScript, but can be written in other languages as well.</q></cite></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts">"userScripts - Mozilla | MDN"</a>. <i>developer.mozilla.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2021-06-21</span></span>.</cite></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.opera.com/docs/userjs/">"User JavaScript"</a>. <i><a href="Opera.com" class="mw-redirect" title="Opera.com">Opera.com</a></i>. 2012-06-02<span class="reference-accessdate">. Retrieved <span class="nowrap">2017-08-31</span></span>. <q>User JavaScript allows you to specify local JavaScript files for Opera to include on every page that you visit.</q></cite></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite id="CITEREFBroughton2008" class="citation book cs1">Broughton, John (2008). <span class="id-lock-registration" title="Free registration required"><a rel="nofollow" class="external text" href="https://archive.org/details/wikipediamissing00brou_0/page/401">"Chapter 21: Easier Editing with JavaScript"</a></span>. <i>Wikipedia: The Missing Manual</i>. <a href="O'Reilly_Media" title="O'Reilly Media">O'Reilly Media</a>. p. <a rel="nofollow" class="external text" href="https://archive.org/details/wikipediamissing00brou_0/page/401">401</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0596515164</bdi>. <q>You can customize Wikipedia in ways that make your editing easier with <i>user scripts</i>, which are written in JavaScript code.</q></cite></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.ghacks.net/2014/05/09/userscripts-org-good-alternatives/">"Userscripts.org down for good? Here are alternatives - gHacks Tech News"</a>. <i>gHacks Technology News</i>. May 9, 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">2021-06-13</span></span>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://userscripts-mirror.org/users/anotherjesse">"Jesse Andrews - Userscripts.org"</a>. <i>userscripts-mirror.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2021-06-13</span></span>.</cite></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://userscripts-mirror.org/users.html">"Community - Userscripts.org"</a>. <i>userscripts-mirror.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2021-06-13</span></span>.</cite></span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/OpenUserJS">"OpenUserJS"</a>. <i>GitHub</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2021-06-13</span></span>.</cite></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/JasonBarnabe/greasyfork">"JasonBarnabe/greasyfork"</a>. <i>GitHub</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2021-06-13</span></span>.</cite></span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://wiki.greasespot.net/User_Script_Hosting">"User Script Hosting - GreaseSpot Wiki"</a>. <i>wiki.greasespot.net</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2021-06-13</span></span>.</cite></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.tampermonkey.net/">"Tampermonkey • FAQ"</a>. <i>www.tampermonkey.net</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2021-06-13</span></span>.</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><a rel="nofollow" class="external text" href="https://greasyfork.org/">Greasy Fork</a></li>
<li><a rel="nofollow" class="external text" href="https://openuserjs.org/">OpenUserJS</a></li>
<li><a rel="nofollow" class="external text" href="https://userscripts-mirror.org/">Userscripts.org archival mirror</a></li>
<li><a rel="nofollow" class="external text" href="https://www.greasespot.net/">Greasespot.net, official website for Greasemonkey (Firefox extension)</a></li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-06-12" href="https://en.wikipedia.org/wiki/?title=Userscript&oldid=1295269470">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>